package com.chinaisafe.demo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.time.LocalTime;

/**
 * DemoTableDTO
 * Description：测试类数据传输对象
 *
 * @author JiangZhaoYong
 * @date  2024-07-15 13:00:14
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
@Schema(name = "DemoTableDTO", description = "测试类数据传输对象")
public class DemoTableDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键id")
    private Long id;

    @Schema(description = "姓名")
    private String name;

    @Schema(description = "年龄")
    private Integer age;

    @Schema(description = "时间日期字段")
    private LocalDateTime dataTimeField;

    @Schema(description = "日期字段")
    private LocalDate dataField;

    @Schema(description = "时间字段")
    private LocalTime timeField;

}
